package com.woniuxy.exam.mapper;

import com.woniuxy.commons.entity.MultipleChoice;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zouyang
 * @date 2020/7/27 - 9:26
 */
@Mapper
@Repository
public interface MultipleChoiceMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MultipleChoice record);

    int insertSelective(MultipleChoice record);

    MultipleChoice selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MultipleChoice record);

    int updateByPrimaryKey(MultipleChoice record);

    List<MultipleChoice> selectAll();

    int insertList(@Param("list")List<MultipleChoice> list);

    List<MultipleChoice> selectByAll(MultipleChoice multipleChoice);

    List<Integer> selectIdByBankId(@Param("bankId")Integer bankId);

    Integer count();

    Integer countByBankId(@Param("bankId")Integer bankId);



}